package com.whzykj.ctrl;

import java.util.List;

import com.jfinal.core.Controller;
import com.whzykj.common.DictCache;
import com.whzykj.model.Dictionary;

public class DictController extends Controller {

	/***
	 * 下拉列表
	 */
	public void item() {
		String goods = getPara(0);
		List<Dictionary> diclist = DictCache.cache.getDicByDictype(goods);
		Dictionary dict=new Dictionary();
		dict.set("DICT_CODE", "-1").set("DICT_NAME", "--- 请选择 ---");
		diclist.add(0,dict);
		this.renderJson(diclist);
	}
}
